var n = getApp();

Page({
    data: {},
    onLoad: function(n) {},
    onReady: function() {},
    onShow: function() {
        this.getFirst();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getFirst: function() {
        var t = n.getNetAddresss("plugin.activity-ranking.frontend.quota.check-prep");
        n._postNetWork({
            url: t,
            success: function(n) {
                var t = n.data;
                1 == t.result ? (console.log(t.data.page), t.data.page && wx.navigateTo({
                    url: t.data.page
                })) : wx.showToast({
                    title: t.msg,
                    duration: 1e3,
                    icon: "none"
                });
            }
        });
    }
});